package com.example.demo.guanchazhe;

public class Client {
    public static void main(String[] args) {
        WeatherData weatherData=new WeatherData();
        CurrentConditions currentConditions=new CurrentConditions();
        weatherData.registerObserver(currentConditions);
        System.out.println("通知各个观察者");
        weatherData.setData(10f,100f,30f);
    }
}
